package com.easyapi.dao.mapper.user;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.easyapi.dao.entity.user.ApiCenterRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import javax.management.relation.Role;
import java.util.List;

@Mapper
public interface ApiCenterRoleMapper extends BaseMapper<ApiCenterRole> {

    List<ApiCenterRole> getRolesByUserId(@Param("roleIds") List<Long> ids);

    List<ApiCenterRole> listRoles();
}